﻿<?php
$test='111111';
define("FOO",$test);
echo FOO;
$test='2222222';
define("FOO",$test);
echo FOO;
//print_r(get_defined_constants());
$page=$_GET[page];
if($page<1){
	$page=1;


}else{
	$page=1;
}
?>
<a href="?page=1">首页</a>
<a href="?page=<?php echo $page-1; ?>">下一页</a>
<a href="?page=<?php echo $page+1; ?>">上一页</a>
<a href="">尾页</a>
<?php
    $array=array();
    $array[one]="one";
    $array[two]="two";
    $array[three]="three";
    print_r($array);
    foreach ($array as $key=>$value){
            echo $key;
            echo $value;
        }
?>
<?php
    $chk1=$_GET[chk1];
    $chk2=$_GET[chk2];
    var_dump($chk1);
    var_dump($chk2);
    echo $chk1."<br/>";
    echo $chk2;
?>
<form>
    <input type="checkbox" name="chk1" value="1" />chk1
    <input type="checkbox" name="chk2" value="2" />chk2
    <input type="submit" name="submit" value="tijiao" />
</form>
<style type="text/css">
.table{width:100%;border-collapse:collapse;border-spacing:0;}
.thead{border-bottom:#eee 1px solid;background-color:#eef3f7;text-align:center;font-family:tahoma,arial,宋体,san-serif;font-size:12px;}
.thead th{font-weight:normal;}
.tr{height:30px;}
.tbody{font:12px/1.5 tahoma,arial,宋体,sans-serif;}
.tbody tr{border-bottom:#eee 1px solid;padding-top:5px;padding-bottom:5px;}
.tbody tr td{border-bottom:#eee 1px solid;padding-top:5px;padding-bottom:5px;text-align:center;}
</style>
<table class="table">
<thead class="thead">
    <tr class="tr">
        <th width=16></th>
        <th width=37>排序</th>
        <th width=40>ID</th>
        <th>标题</th>
        <th width=40>点击量</th>
        <th width=70>发布人</th>
        <th width=118>更新时间</th>
        <th width=72>管理操作</th>
    </tr>
</thead>
<tbody class="tbody">
    <tr>
        <td></td>
        <td>排序</td>
        <td>ID</td>
        <td>标题</td>
        <td>点击量</td>
        <td>发布人</td>
        <td>更新时间</td>
        <td>修改|删除</td>
    </tr>
    </tr>
        <td></td>
        <td>排序</td>
        <td>ID</td>
        <td>标题</td>
        <td>点击量</td>
        <td>发布人</td>
        <td>更新时间</td>
        <td>修改|删除</td>
    </tr>
</tbody>
</table>
